﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SRM555_1
{
    class Program
    {
        static void Main(string[] args)
        {
            Verify("101101101", 3);
            Verify("1111101", 1);
            Verify("00000", -1);
            Verify("110011011", 3);
            Verify("1000101011", -1);
            Verify("111011100110101100101110111", 5);
            Console.Read();
        }

        private static void Verify(string p1, int p2)
        {
            Console.WriteLine(new CuttingBitString().getmin(p1) == p2);
        }
    }

}
